.class Les/ow$c;
.super Landroid/widget/BaseAdapter;
.source "SelectNetDiskDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/ow;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "c"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/ow$c$a;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field final synthetic b:Les/ow;


# direct methods
.method private constructor <init>(Les/ow;Landroid/content/Context;)V
    .locals 0

    .line 2
    iput-object p1, p0, Les/ow$c;->b:Les/ow;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 3
    iput-object p2, p0, Les/ow$c;->a:Landroid/content/Context;

    return-void
.end method

.method synthetic constructor <init>(Les/ow;Landroid/content/Context;Les/ow$a;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Les/ow$c;-><init>(Les/ow;Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Les/ow$c;->b:Les/ow;

    invoke-static {v0}, Les/ow;->a(Les/ow;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    .line 1
    iget-object v0, p0, Les/ow$c;->b:Les/ow;

    invoke-static {v0}, Les/ow;->a(Les/ow;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    const/4 v0, 0x0

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Les/ow$c;->a:Landroid/content/Context;

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v1, 0x7f0c01d3

    invoke-virtual {p2, v1, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    .line 2
    new-instance p3, Les/ow$c$a;

    const/4 v1, 0x0

    invoke-direct {p3, p0, v1}, Les/ow$c$a;-><init>(Les/ow$c;Les/ow$a;)V

    const v1, 0x7f09003a

    .line 3
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/esclasses/ESImageView;

    iput-object v1, p3, Les/ow$c$a;->a:Lcom/estrongs/android/pop/esclasses/ESImageView;

    const v1, 0x7f09003c

    .line 4
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p3, Les/ow$c$a;->b:Landroid/widget/TextView;

    const v1, 0x7f090a57

    .line 5
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p3, Les/ow$c$a;->c:Landroid/widget/ImageView;

    .line 6
    invoke-virtual {p2, p3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    goto :goto_0

    .line 7
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Les/ow$c$a;

    .line 8
    :goto_0
    iget-object v1, p3, Les/ow$c$a;->b:Landroid/widget/TextView;

    iget-object v2, p0, Les/ow$c;->b:Les/ow;

    invoke-static {v2}, Les/ow;->a(Les/ow;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    invoke-interface {v2}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object v1, p3, Les/ow$c$a;->a:Lcom/estrongs/android/pop/esclasses/ESImageView;

    iget-object v2, p0, Les/ow$c;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f080784

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setLeftCornerImage(Landroid/graphics/drawable/Drawable;)V

    .line 10
    iget-object v1, p0, Les/ow$c;->b:Les/ow;

    invoke-static {v1}, Les/ow;->b(Les/ow;)I

    move-result v1

    if-ne p1, v1, :cond_1

    .line 11
    iget-object p1, p3, Les/ow$c$a;->c:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 12
    iget-object p1, p3, Les/ow$c$a;->b:Landroid/widget/TextView;

    iget-object p3, p0, Les/ow$c;->a:Landroid/content/Context;

    invoke-virtual {p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    const v0, 0x7f06009c

    invoke-virtual {p3, v0}, Landroid/content/res/Resources;->getColor(I)I

    move-result p3

    invoke-virtual {p1, p3}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_1

    .line 13
    :cond_1
    iget-object p1, p3, Les/ow$c$a;->c:Landroid/widget/ImageView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 14
    iget-object p1, p3, Les/ow$c$a;->b:Landroid/widget/TextView;

    iget-object p3, p0, Les/ow$c;->a:Landroid/content/Context;

    invoke-virtual {p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p3

    const v0, 0x7f0600a2

    invoke-virtual {p3, v0}, Landroid/content/res/Resources;->getColor(I)I

    move-result p3

    invoke-virtual {p1, p3}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_1
    return-object p2
.end method
